package com.ccrfid.rmc6.repository.business.nightPatrol;

import com.ccrfid.rmc6.entity.business.nightpatrol.NpResultDetailEntity;
import com.ccrfid.rmc6.repository.search.SearchableRepository;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface NpResultDetailRepository extends Repository<NpResultDetailEntity, Long>, SearchableRepository<NpResultDetailEntity> {

    NpResultDetailEntity getById(Long id);

    List<NpResultDetailEntity> getByResultId(Long resultId);

    boolean existsById(Long id);

    boolean existsByResultId(Long resultId);

    NpResultDetailEntity save(NpResultDetailEntity entity);

    void deleteById(Long id);
}
